Print the time to xend-debug.log, when starting or restarting Xend.
authorEwan Mellor <ewan@xensource.com>
Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)
committerEwan Mellor <ewan@xensource.com>
Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/SrvDaemon.py

index 254c5d6939c4a446b84458ce36719921e1775fa4..baba3c437d3831f318c0ccd83990ee7a2195018b 100644 (file)
@@ -9,6 +9,7 @@ import os
 import signal
 import sys
 import threading
+import time
 import linecache
 import pwd
 import re
@@ -112,6 +113,8 @@ class Daemon:
             os.open('/dev/null', os.O_RDWR)
             os.dup(0)
             os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
+        print >>sys.stderr, ("Xend started at %s." %
+                             time.asctime(time.localtime()))
 
         
     def start(self, trace=0):